package com.sjzd.meeting.service.impl;

import com.sjzd.meeting.dao.UserDAO;
import com.sjzd.meeting.pojo.User;
import com.sjzd.meeting.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserDAO userDAO;


    @Override
    public User selectByEmail(String email) {
        return userDAO.selectByEmail(email);
    }

    @Override
    public User selectByWxid(Integer wxid) {
        return userDAO.selectByWxid(wxid);
    }

    @Override
    public int update(User user) {
        return userDAO.updateByPrimaryKey(user);
    }

    @Override
    public User selectById(Integer id) {
        return userDAO.selectByPrimaryKey(id);
    }
}
